<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <ul>
        <li>11</li>
        <li>22</li>
        <li>33</li>
        <li>44</li>
    </ul>
    <script>
        const ul=document.querySelector('ul')
        ul.addEventListener('click',function(e){
            if(e.target.tagName==='LI'){
                ul.style.color='red'
            }

        })
    </script>
</body>


</html>